<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        window.onload = function(){
            var i = 0
            window.onscroll = function(){
                document.title = i++
            }
        }
    </script>
</head>
<body>
    <div style="height: 3000px;">
        <h1>hello world</h1>
    </div>
</body>
</html>